package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.entity.NursingProject;
import com.zzyl.vo.NursingProjectVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description NursingProjectMapper
 * @Author lifuyun
 * @Date 2024-08-23
 */
@Mapper
public interface NursingProjectMapper {
    /**
     * 分页查询护理项目列表
     * @param name
     * @param status
     * @return
     */
    Page<NursingProjectVo> selectByPage(String name, Integer status);

    /**
     * 新增护理项目
     * @param nursingProject
     */
    void insert(NursingProject nursingProject);

    /**
     * 根据id查询护理项目
     * @param id
     * @return
     */
    NursingProject selectById(Long id);

    /**
     * 修改护理项目
     * @param nursingProject
     */
    void updateNursingProject(NursingProject nursingProject);

    /**
     * 护理项目启用禁用
     * @param id
     * @param status
     */
    void updateNursingProjectStatus(@Param("id") long id, @Param("status") int status);

    /**
     * 根据id删除护理项目
     * @param id
     */
    void deleteNursingProject(long id);

    /**
     * 查询所有护理项目
     * @return
     */
    List<NursingProjectVo> selectAllNursingProject();
}
